package com.zy.config.dto;

import com.zy.db.enums.QueryTypeEnums;
import com.zy.db.pointcut.Q;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zy
 * @since 2023/3/18 23:15
 */
@Data
public class AppConfigQueryDto {

    @NotBlank
    @Q(QueryTypeEnums.eq)
    private String appId;

    @Q(QueryTypeEnums.eq)
    private String env;

    @Q(value = QueryTypeEnums.eq, defaultValue = "private")
    private String powerType;

    @Q(value = QueryTypeEnums.eq, defaultValue = "0")
    private String is_del;

    public AppConfigQueryDto(String appId, String env) {
        this.appId = appId;
        this.env = env;
    }

    public AppConfigQueryDto() {
    }

}
